#ifndef FIRFILTER_H
#define FIRFILTER_H

#include <QObject>
#include <QList>

class FIRFilter : public QObject
{
    Q_OBJECT
public:
    explicit FIRFilter(int period, QObject *parent = 0);
    explicit FIRFilter(QObject *parent = 0);
    void setPeriod(int p);
    void setInput(double signal);
    const double & getOutput() const;
    void reset();

signals:

public slots:

private:
    int AD_Period; // 响应周期数
    QList<double> inputSignals; // um
    double outputValue; // um
    double fOutputValue; // mm
};

#endif // FIRFILTER_H
